/******************************************************************************
* File description: MaintenanceYingGuang2YingGuangZhi.qml
* Function: 荧光值读取
* Current Version: 1.0.0
* Author: 张宇轩
* Date: 2024-08-28
*  -----
*  Copyright by 博坤生物 .
 *****************************************************************************/
import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.14

Item {
    id: root

    /* property 定义开始 */

    /* property 定义结束 */

    ColumnLayout {
        anchors {
            fill: parent
            topMargin: 16
            bottomMargin: 32
        }
        spacing: 16

        // 非表格部分
        Item {
            Layout.fillWidth: true
            Layout.preferredHeight: 40
            Layout.leftMargin: 16
            Layout.rightMargin: 16

            RowLayout {
                anchors.fill: parent

                CustomHorSpacerItem {}

                // 通道
                LabelComboBox {
                    id: tongDao
                    Layout.preferredWidth: 85 + tongDao.getLabelSize()[0]
                    Layout.preferredHeight: 40
                    comboBoxWidth: 85
                    comboBoxHeight: 40
                    model: ["FAM", "VIC", "ROX", "CY5"]
                    comboBoxText: "通道"
                    colSpacing: 4
                    showListMaxCountinPage: 4
                }

                // 采集间隔
                LabelTextInput {
                    id: caiJiJianGe
                    Layout.preferredWidth: 80 + caiJiJianGe.getLabelSize()[0]
                    Layout.preferredHeight: 40
                    labelText: "采集间隔(s)"
                    labelFontPixelSize: 16
                    inputWidth: width
                    inputHeight: height
                    placeholderText: "请输入"
                }

                // 采集次数
                LabelTextInput {
                    id: caiJiCiShu
                    Layout.preferredWidth: 80 + caiJiCiShu.getLabelSize()[0]
                    Layout.preferredHeight: 40
                    labelText: "采集次数"
                    labelFontPixelSize: 16
                    inputWidth: width
                    inputHeight: height
                    placeholderText: "请输入"
                }

                // 单步采集
                PureButton {
                    id: danBuBtn
                    Layout.preferredWidth: 80
                    Layout.preferredHeight: 40
                    pureBtnWidth: 80
                    pureBtnColor: "#FF2F42CD"
                    pureHoveredColor: "#FF2F42CD"
                    pureLabelColor: "#FFFFFFFF"
                    pureFontHoveredColor: "#FFFFFFFF"
                    pureBtnBorderColor: "transparent"
                    pureText: "单步采集"
                    disabledPureBtnColor: "#FFF5F5F5"
                    disabledPureBtnBorderColor: "#FFD9D9D9"
                    disabledPureLabelColor: "#FFBFBFBF"
                    // 关闭过渡效果
                    isTransition: false
                }

                // 连续采集
                PureButton {
                    id: lianXuBtn
                    Layout.preferredWidth: 80
                    Layout.preferredHeight: 40
                    pureBtnWidth: 80
                    pureBtnColor: "#FF2F42CD"
                    pureHoveredColor: "#FF2F42CD"
                    pureLabelColor: "#FFFFFFFF"
                    pureFontHoveredColor: "#FFFFFFFF"
                    pureBtnBorderColor: "transparent"
                    pureText: "连续采集"
                    disabledPureBtnColor: "#FFF5F5F5"
                    disabledPureBtnBorderColor: "#FFD9D9D9"
                    disabledPureLabelColor: "#FFBFBFBF"
                    // 关闭过渡效果
                    isTransition: false
                }

                // 运动
                PureButton {
                    id: yunDongBtn
                    Layout.preferredWidth: 80
                    Layout.preferredHeight: 40
                    pureBtnWidth: 80
                    pureBtnColor: "#FF2F42CD"
                    pureHoveredColor: "#FF2F42CD"
                    pureLabelColor: "#FFFFFFFF"
                    pureFontHoveredColor: "#FFFFFFFF"
                    pureBtnBorderColor: "transparent"
                    pureText: "运动"
                    disabledPureBtnColor: "#FFF5F5F5"
                    disabledPureBtnBorderColor: "#FFD9D9D9"
                    disabledPureLabelColor: "#FFBFBFBF"
                    // 关闭过渡效果
                    isTransition: false
                }
            }
        }

        // 表格部分
        MaintenanceYingGuang2YingGuangZhiTable {
            id: yingGuangZhiTable
            Layout.fillWidth: true
            Layout.fillHeight: true
        }
    }
}
